package com.zdkj.subway.support.dto.in;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 站内消息
 *
 * @author cui_com
 * @date 2020-08-04 18:28:42
 */
@Data
@ApiModel(value = "站内消息")
public class SwMessageDTO implements Serializable {

    private static final long serialVersionUID = 4267577718259930946L;
    /**
     * 唯一标识
     */
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 消息类型(下发/申诉/通知等按钮)
     */
    @ApiModelProperty(value = "消息类型(下发/申诉/通知等按钮)")
    private String msgType;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;
    /**
     * 状态1：已阅  0：待阅
     */
    @ApiModelProperty(value = "状态1：已阅  0：待阅")
    private Integer status;
    /**
     * 跳转地址
     */
    @ApiModelProperty(value = "跳转地址")
    private String url;
    /**
     * 已阅时间
     */
    @ApiModelProperty(value = "已阅时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime readTime;
}
